export const rules = {
  name: [
    {
      required: true,
      message: '用户名必穿',
      trigger: 'blur'
    },
    {
      message: '必须5-10个字母',
      pattern: /^[a-z0-9]{5,10}$/,
      trigger: 'blur'
    }
  ],
  password: [
    {
      required: true,
      message: '密码名必穿',
      trigger: 'blur'
    },
    {
      message: '必须5-10个字母',
      pattern: /^[a-z0-9]{5,10}$/,
      trigger: 'blur'
    }
  ]
}
